package Herotestw;
//我是子类1
import ss.Hero;
//我调用了父类的包
public class Ultraman extends Hero {
    private String humanlikename;
    private String department;

    public Ultraman() {
        System.out.println("Mark:子类无参构造方法");
    }
    public Ultraman(String name, int age, int fightpower, int defendpower, String superpower, String humanlikename, String department) {
        super(name, age, fightpower, defendpower, superpower);
        System.out.println("Mark:子类有参构造方法");
        this.humanlikename = humanlikename;
        this.department = department;
    }

    public void setUltramanInfo(String inputn,int inputa, int inputf,int inputd,String inputs, String loadh, String loadd) {
        super.setHeroInfo(inputn,inputa);//父类方法一般在子类里用，主方法里测试
        super.setPower(inputf,inputd,inputs);
        System.out.println("请输入人间体名");
        humanlikename = loadh;
        department = loadd;
    }

    public void getUltramanInfo() {
        super.getHeroInfo();
        super.getPower();
        System.out.println("人间体名： " + humanlikename);
        System.out.println("地球防卫队部门： " + department);
    }
    public void target() {
        super.target();
    }
}
